package com.yhao.bean.tx;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

public class FaceIdentify implements Serializable{


    /**
     * session_id : session_id
     * candidates : [{"person_id":"person3","face_id":"1031567119985213439","confidence":54.90695571899414,"\u201ctag\u201d":"\u201cnew tag\u201d"},{"person_id":"person1","face_id":"1031587105968553983","confidence":54.86775207519531,"\u201ctag\u201d":"\u201cnew tag\u201d"}]
     * errorcode : 0
     * errormsg : OK
     */

    @SerializedName("session_id")
    private String sessionId;
    @SerializedName("errorcode")
    private int errorCode;
    @SerializedName("errormsg")
    private String errorMsg;
    private List<CandidatesBean> candidates;

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public List<CandidatesBean> getCandidates() {
        return candidates;
    }

    public void setCandidates(List<CandidatesBean> candidates) {
        this.candidates = candidates;
    }

    public static class CandidatesBean {
        /**
         * person_id : person3
         * face_id : 1031567119985213439
         * confidence : 54.90695571899414
         * “tag” : “new tag”
         */

        @SerializedName("person_id")
        private String personId;
        @SerializedName("face_id")
        private String faceId;
        private double confidence;
        @SerializedName("tag")
        private String tag;

        public String getPersonId() {
            return personId;
        }

        public void setPersonId(String personId) {
            this.personId = personId;
        }

        public String getFaceId() {
            return faceId;
        }

        public void setFaceId(String faceId) {
            this.faceId = faceId;
        }

        public double getConfidence() {
            return confidence;
        }

        public void setConfidence(double confidence) {
            this.confidence = confidence;
        }

        public String getTag() {
            return tag;
        }

        public void setTag(String tag) {
            this.tag = tag;
        }
    }
}
